Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Wifi scan options #302

Merged
merged 9 commits into from
Nov 1, 2023

Conversation

umgefahren
Copy link
Contributor

This PR adds support for WIFI options, enabling advanced configuration and passive scanning.
Could lay the foundation for esp-rs/embedded-svc#57.

esp-wifi/src/wifi/mod.rs Outdated Show resolved Hide resolved
esp-wifi/src/wifi/mod.rs Outdated Show resolved Hide resolved
@umgefahren
Copy link
Contributor Author

I don't know what is left do to, but from my point of view, this could be merged. I have added a lot of doc comments. I could also add an example, but I only have an ESP32S3.

@umgefahren umgefahren changed the title Added support for Wifi options Added support for Wifi scan options Oct 28, 2023
impl ScanTypeConfig {
fn validate(&self) {
if matches!(self, Self::Passive(dur) if *dur > Duration::from_millis(1500)) {
#[cfg(feature = "log")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use warn! here

esp-wifi/src/wifi/mod.rs Outdated Show resolved Hide resolved
@bjoernQ
Copy link
Contributor

bjoernQ commented Oct 31, 2023

apart from the small nitpicks about logging this looks good to me

@bjoernQ
Copy link
Contributor

bjoernQ commented Nov 1, 2023

I'll run the usual tests on all targets just to make sure it doesn't break anything and if nothing breaks it should be fine to merge I guess

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bjoernQ bjoernQ merged commit a2cf508 into esp-rs:main Nov 1, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants